package net.dopan.pigframe.demo.service.impl.ribbon;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.client.RestTemplate;
import org.springframework.web.multipart.MultipartFile;

@Service
public class OssServiceRibbon {
    @Autowired
    RestTemplate restTemplate;
    public String getUploadUrl(MultipartFile file) {
        String str = restTemplate.getForObject("http://OSSSERVER/api/upload?file="+file,String.class);
        return str;
    }
}
